home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 October / EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso / Aminet / comm / tcp / HyperMail102.lha / HyperMail / Makefile < prev    next >
Makefile  |  1995-06-18  |  3KB  |  126 lines

  1. #
  2. # Makefile for Hypermail
  3. # Kevin Hughes, 8/1/94
  4. #
  5. # Additional makefile additions for the Amiga platform by
  6. # Joop van de Wege, Joop.vandeWege@medew.ento.wau.nl
  7. # 06/17/95
  8. #
  9. # Usage:
  10. # Comment/uncomment depending on the compiler you have (Aztec/GCC)
  11. # If you use GCC uncomment the proper OBJS and CLFAGS if you want LibNix
  12. # Prepped for GCC, LibnixV0.8 and AMITCP/AWS setup
  13. #
  14. # TODO
  15. # - make it possible to compile 'mail' and 'cgilib' under Aztec.
  16. # - NOT possible yet to use anything below the '$(OBJS):' line !!!!
  17. #
  18.  
  19. BINDIR= AMITCP:bin
  20. #BINDIR= /usr/local/bin
  21. # This is where you want hypermail to be installed
  22.  
  23. MANDIR= AMITCP:doc
  24. #MANDIR= /usr/local/man/man1
  25. # This is where the man page goes
  26.  
  27. HTMLDIR= AMITCP:html
  28. #HTMLDIR= /usr/local/www/software/hypermail
  29. # This is where the HTML documentation goes
  30.  
  31. CGIDIR= aws:cgi-bin
  32. #CGIDIR= /usr/local/httpd/cgi-bin
  33. # This is where your CGI programs live
  34.  
  35. #Manx Aztec 5.2
  36. #CC= cc
  37.  
  38. #GCC
  39. CC= gcc
  40.  
  41. #GCC
  42. #CFLAGS= -v -O2 -DAMIGA
  43. CFLAGS= -v -O2 -m68040 -DAMIGA -noixemul
  44. LFLAGS= -s -lm
  45.  
  46. #Aztec compile for mc68020 remove '-c2' if mc68000 wanted, leave the rest
  47. #CFLAGS= -DAMIGA -pl -so -c2  -me -sb -wo
  48. #LFLAGS= -lm -lc
  49.  
  50. #Aztec
  51. # Two additional files needed: getopt.c (unknown source)
  52. # and strcasecmp.c from ixemul.library (41.00) source
  53. #OBJS=        file.o mem.o string.o print.o parse.o struct.o \
  54.             date.o hypermail.o strcasecmp.o getopt.o 
  55.  
  56. #GCC
  57. #OBJS=        file.o mem.o string.o print.o parse.o struct.o date.o hypermail.o 
  58.  
  59. #GCC -noixemul
  60. # One additional file needed: getopt.c (unknown source)
  61. OBJS=        getopt.o file.o mem.o string.o print.o parse.o struct.o \
  62.             date.o hypermail.o
  63.  
  64. MAILOBJS=    mail.o libcgi/libcgi.a
  65.  
  66. .c.o:
  67. #Aztec
  68. #        $(CC) $(CFLAGS)  $*.c
  69. #GCC
  70.         $(CC) -c $(CFLAGS)  $<
  71.  
  72. all:        hypermail
  73.             
  74. hypermail:    $(OBJS)
  75. #GCC
  76.         $(CC) -o hypermail $(CFLAGS) $(OBJS) $(LFLAGS)
  77.         chmod 0755 hypermail
  78.         chmod 0644 hypermail.1
  79.         chmod 0644 hypermail.html
  80.         chmod 0644 hypermail.gif
  81. #Aztec
  82. #        ln -o hypermail $(OBJS) $(LFLAGS) $(LFLAGS)
  83.  
  84. libcgi/libcgi.a:
  85.         cd libcgi; make all CC="$(CC)" CFLAGS="$(CFLAGS)"
  86.  
  87. mail:        $(MAILOBJS)
  88.         $(CC) -o mail $(CFLAGS) $(MAILOBJS)
  89.  
  90. $(OBJS):    Makefile hypermail.h config.h
  91.  
  92. install:
  93.         install -cs -m 0755 hypermail $(BINDIR)
  94.         install -c -m 0644 hypermail.1 $(MANDIR)
  95.  
  96. html.install:
  97.         install -c -m 0644 hypermail.html $(HTMLDIR)
  98.         install -c -m 0644 hypermail.gif $(HTMLDIR)
  99.  
  100. mail.install:
  101.         install -c -m 0755 mail $(CGIDIR)
  102.  
  103. install.alpha:
  104.         install -c $(BINDIR) -s -m 0755 hypermail
  105.         install -c $(MANDIR) -m 0644 hypermail.1
  106.  
  107. html.install.alpha:
  108.         install -c $(HTMLDIR) -m 0644 hypermail.html
  109.         install -c $(HTMLDIR) -m 0644 hypermail.gif
  110.  
  111. mail.install.alpha:
  112.         install -c $(CGIDIR) -m 0755 mail
  113.  
  114. pure:
  115.          make CFLAGS="-g" $(OBJS)
  116.         purify $(CC) -o hypermail -g $(CFLAGS) $(OBJS)
  117.  
  118. quant:
  119.          make CFLAGS="-g" $(OBJS)
  120.         quantify $(CC) -o hypermail -g $(CFLAGS) $(OBJS)
  121.  
  122. clean:
  123.         rm -f ./hypermail ./mail *.o .pure hypermail.pure* *qx *qv
  124.         rm -fr ./archive
  125.         cd libcgi; make clean
  126.